<?php

namespace App\Admin\Actions;

use App\Admin\Renderable\NewHouseTable;
use Dcat\Admin\Actions\Action;
use Dcat\Admin\Actions\Response;
use Dcat\Admin\Grid\RowAction;
use Dcat\Admin\Traits\HasPermissions;
use Dcat\Admin\Widgets\Modal;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class BuildingAction extends RowAction
{
    /**
     * @return string
     */
	protected $title = '户型';

	public function render()
    {
       $form = NewHouseTable::make()->payload(['id'=>$this->getKey()]);
       return Modal::make()
           ->xl()
           ->title($this->title)
           ->body($form)
           ->button('户型');
    }
}
